/**
 * Copyright (C) 2012 The SkyTvOS Project
 * <p/>
 * Version     Date           Author
 * ─────────────────────────────────────
 * 2014年12月29日         luwei
 */

package com.coocaa.launcher.sidebar.left.item.wallpaper;

import android.content.Context;
import android.content.Intent;
import android.view.KeyEvent;
import android.view.View;

import com.coocaa.launcher.SettingActivity;
import com.coocaa.launcher.framework.sidebar.item.Item;
import com.coocaa.launcher.framework.sidebar.item.ItemView;
import com.skyworth.logsdk.appstore.LogAPIForAppStore;

public class Wallpaper extends Item {
    public Wallpaper(Context context) {
        super(context);
    }

    @Override
    public void onItemFocusChange(View v, boolean focus) {
        // TODO Auto-generated method stub
        super.onItemFocusChange(v, focus);
    }

    @Override
    public boolean onItemKeyEvent(View v, int keycode, KeyEvent keyEvent) {
        return false;
    }

    @Override
    public void onItemClick(View v) {
        Intent intent = new Intent(mContext, SettingActivity.class);
        intent.putExtra("type", mType.toString());
        mContext.startActivity(intent);
        LogAPIForAppStore.toSetWallpaper();
        super.onItemClick(v);
    }

    @Override
    public ItemView createItemView() {
        return new WallpaperItem(mContext);
    }

}
